/*
** connected_socket.c for  in /home/faye_m//zappy-2011/new_server/src/src
** 
** Made by mouhamed faye
** Login   <faye_m@epitech.net>
** 
** Started on  Wed Jul  6 20:24:09 2011 mouhamed faye
** Last update Sun Jul 10 09:47:05 2011 el-hadji-malick-ndour dieng
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "types.h"

int    Is_Connected(int *tab , int socket)
{
  int i = 0;

  while (i < getMaxFd())
    {
      if (tab[i] == socket)
	  return 1;
      ++i;
    }
  return 0;
}
